﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class public_page_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        SysCommon.checkUserLogin();

        if (!IsPostBack)
        {
            int orgId;
            if (int.TryParse(Convert.ToString(Request.QueryString["orgId"]), out orgId) == true)
            {
                DataRow dr = DataBaseOperate_SQLServer.GetDataRow("select * from t_cost_organization where cost_organization_id=" + Convert.ToString(orgId));
                if (dr != null)
                {
                    lbl_cost_organization_name.Text = Convert.ToString(dr["cost_organization_name"]);
                    lbl_search_type1.Text = Convert.ToString(dr["search_type1"]);
                }
                else
                {
                    Response.Redirect("allBill.aspx");
                }
            }
            else
            {
                Response.Redirect("allBill.aspx");
            }
        }
    }

    protected void btn_next_Click(object sender, EventArgs e)
    {
        Server.Transfer("confirm_insertBill.aspx");
    }
}
